<template>
	<view>
		<u-swiper :list="lun" :height="250" :effect3d="true" :interval="3000" @click="click(idd)">
		</u-swiper>
		<uni-group title="驿站信息">
			<view class="">
				驿站地址：{{content.address}}
			</view>
			<view class="">
				驿站联系电话：{{content.phone}}
			</view>
			<view class="">
				办理入住时间段：{{content.workTime}}
			</view>
		</uni-group>
		<uni-group title="驿站详细">
			<view class="">
				驿站简介：{{content.introduce}}
			</view>
			<view class="">
				房间配置：{{content.internalFacilities}}
			</view>
			<view class="">
				周边配套：{{content.surroundingFacilities}}
			</view>
			<view class="">
				特色服务：{{content.specialService}}
			</view>
		</uni-group>
	</view>
</template>

<script>
	import api from 'commer/apiURL.js'
	export default {
		data() {
			return {
				base:api.baseurl,
				content:'',
				lun:[]
			}
		},
		onLoad(options) {
			this.getlun(options.id)
		},
		methods: {
			getlun(id){
				this.$get(this.base+'/prod-api/api/youth-inn/youth-inn/'+id).then((res)=>{
					this.content = res.data
					for(var i= 0;i<7;i++){
						this.lun.push({
							image:this.base+res.data.coverImgUrl
						})
					}
				})
			}

		}
	}
</script>

<style>

</style>
